<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>你好</title>
	</head>
	<body>
		<script>
			
			window.onload=function()
			{
				console.log("页面加载完成了")
				console.log(document.title)
				//document.title="hah"
				var i=0;
				setInterval(function()
				{
					if(i==0)
					{
						document.title="hah"
						i=1
					}
					else
					{
						document.title="heh"
						i=0
					}
				},1000)
	
			}
			
		</script>
		
		
		
	</body>
</html>